package com.hongxun.entity;

import android.content.Context;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by admin on 2018/9/18.
 */

public class HomeLabel {

    private String label;
    private List<HomeItem> items;

    public static List<HomeLabel> getInstance(Context context){
        List<HomeLabel> list=new ArrayList<>();
        list.add(new HomeLabel(context,"项目踏勘"));
        list.add(new HomeLabel(context,"项目施工"));
        list.add(new HomeLabel(context,"项目验收"));
        return list;
    }

    public HomeLabel(Context context, String label) {
        this.label = label;
        switch (label) {
            case "项目踏勘":
                this.items = HomeItem.getHomeItem(context);
                break;
            case "项目施工":
                this.items = HomeItem.getHomeItem2(context);
                break;
            case "项目验收":
                this.items = HomeItem.getHomeItem3(context);
                break;
        }

    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<HomeItem> getItems() {
        return items;
    }

    public void setItems(List<HomeItem> items) {
        this.items = items;
    }
}
